package com.attendance.mapper;

import com.attendance.Utils.SQLProvider;
import com.attendance.model.Biz.BizDepartment;
import com.attendance.model.Department;
import com.attendance.model.Form.DepartmentForm;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 *
 * Department 表数据库控制层接口
 *
 */
@Mapper
public interface DepartmentMapper extends AutoMapper<Department> {

//    @Select(value = "select * from department")
    @SelectProvider(type = SQLProvider.class, method = "queryBizDepartment")
    public List<BizDepartment> getAll(DepartmentForm departmentForm);
}